/**
 *
 * (c) Copyright Ascensio System SIA 2025
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.zzvcom.office.entities;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import jakarta.persistence.Entity;
import jakarta.persistence.Table;

/**
 * 用于配置ONLYOFFICE文档编辑器的关闭功能。
 * @see com.onlyoffice.model.documenteditor.config.editorconfig.customization.Close
 * 类中的两个字段定义，用于配置ONLYOFFICE文档编辑器的关闭功能。
 * @author yujikuan
 */
@Entity
@Table(name = "`close`")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class Close extends AbstractEntity {
    /**
     * 功能: 定义编辑器标题栏按钮或移动端编辑器及网页版编辑器文件菜单中菜单项的工具提示文本
     * 作用域:
     * 编辑器标题栏按钮的工具提示
     * 移动端编辑器中的菜单项文本
     * 网页版编辑器文件菜单中的菜单项文本
     */
    private String text;
    /**
     * 功能: 控制编辑器中关闭按钮（叉号按钮）的显示或隐藏
     */
    private Boolean visible;
}
